package com.legrand.www.module.exception.ss.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class ErroreControllerHandel /*implements ErrorController*/ {
    public final static String ERROR_PATH = "/404";

    @RequestMapping(value = ERROR_PATH, produces = "text/html")
    public String returnToDefineHtml() {
        return ERROR_PATH;
    }


    @RequestMapping(value = ERROR_PATH)
    @ResponseBody
    public String returnDefineJson() {
        return ERROR_PATH;
    }

       /*@Override
       public String getErrorPath() {
              return ERROR_PATH;
       }*/
}
